<?php //debug($planos);?>
<?php echo $this->Form->create('planos', array('action' => 'planos')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE CONTRATOS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>Codigo</th>
                    <th>Descripcion</th>                                                        
                    <th>Proveedor</th>
                    <th>Field Work Order</th>
                    <th>change Work Order </th>
                    <th>Contrato</th>
                    <th>IAP</th>
                    <th>Accion</th>
                </tr>
            </thead>
            <tbody>
                <?php $i = 1; ?>
                <?php foreach ($datosContrato as $datocon): ?>  
                <?php $idContrato = $datocon['Contrato']['id']; ?>              
                <tr class="gradeX">
                <td><?php echo $i; $i++; ?></td>
                <td><?php echo $datocon['Contrato']['codigo'];?></td> 
                <td><?php echo $datocon['Contrato']['descripcion'];?></td>
                <td><?php echo $datocon['Contrato']['proveedor'];?></td>
                <td><?php echo $datocon['Contrato']['monto1'];?></td>
                <td><?php echo $datocon['Contrato']['monto2'];?></td>
                <td><?php echo $datocon['Contrato']['monto3'];?></td>
                <td><?php echo $datocon['Contrato']['IAP'];?></td>
                <td>
                    <?php echo $this->Html->link('DETALLE',array('controller'=>'Contratos', 'action'=>'detalle', $idContrato));?> 
                    
                </tr>
                <?php endforeach; ?>                
            </tbody>
        </table>
    </div> 
</div> 

<div class="actions-right">
            <?php echo $this->Html->link("Volver &raquo;", array('controller'=>'Publicos', 'action'=>'generales'), array('class'=>'buttonS bLightBlue', 'escape' => FALSE)); ?>
</div>